<template>
    <div class="hot-wrap">
        <div class="hot-top">
            <span><img class="mp-title-img" src="https://imgs.qunarzz.com/piao/fusion/1711/16/bfbb9874e8f11402.png" alt="本周热门榜单">本周热门榜单</span>
            <span>全部榜单></span>
        </div>
        <ul class="hot-arr-wrap">
            <li class="hot-item" v-for="(item,index) in hotList" :key="index">
                <img :src="item.imgUrl" alt="" class="img">
                <p class="txt">{{item.title}}</p>
            </li>
        </ul>
    </div>
</template>

<script>
export default {
    name:"hot",
    data(){
        return{
            hotList:[
                {   
                    id:14,
                    title:'古堡',
                    imgUrl:'https://imgs.qunarzz.com/sight/p0/1902/80/80d7d3ef350b7fffa3.water.jpg_250x250_7ac68b4a.jpg',
                    mark:'25'
                },
                {   
                    id:14,
                    title:'古堡',
                    imgUrl:'https://imgs.qunarzz.com/sight/p0/1904/de/de517f86e9fd0d87a3.water.png_250x250_bc61af78.png',
                    mark:'25'
                },
                {   
                    id:14,
                    title:'古堡',
                    imgUrl:'https://imgs.qunarzz.com/sight/p0/1902/80/80d7d3ef350b7fffa3.water.jpg_250x250_7ac68b4a.jpg',
                    mark:'25'
                },
                {   
                    id:14,
                    title:'古堡',
                    imgUrl:'https://imgs.qunarzz.com/sight/p0/1902/80/80d7d3ef350b7fffa3.water.jpg_250x250_7ac68b4a.jpg',
                    mark:'25'
                },
                {   
                    id:14,
                    title:'古堡',
                    imgUrl:'https://imgs.qunarzz.com/sight/p0/1902/80/80d7d3ef350b7fffa3.water.jpg_250x250_7ac68b4a.jpg',
                    mark:'25'
                },
                {   
                    id:14,
                    title:'古堡',
                    imgUrl:'https://imgs.qunarzz.com/sight/p0/1902/80/80d7d3ef350b7fffa3.water.jpg_250x250_7ac68b4a.jpg',
                    mark:'25'
                },
                {   
                    id:14,
                    title:'古堡',
                    imgUrl:'https://imgs.qunarzz.com/sight/p0/1902/80/80d7d3ef350b7fffa3.water.jpg_250x250_7ac68b4a.jpg',
                    mark:'25'
                }
            ]
        }
    }
}
</script>

<style>
.hot-wrap{
    background: white;
}
.mp-title-img{
    height: 0.4rem;
}
.hot-top{
    display: flex;
    justify-content: space-between;
    font-size:0.32rem;
    padding:0.3rem;
    align-items: center;
}

.hot-arr-wrap{
    padding-left: 0.2rem;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
}
.hot-item{
    width: 2rem;
    height: 2rem;
    margin-right: 0.2rem;
    display: inline-block;
}
.hot-item img{
   width: 100%;
}
.hot-item p{
    text-align: center;
    font-size:0.28rem;

}

</style>
